﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Strongshell.Recoil.Core.Composition.Parsing.DependencyInjection
{
    public class NestingInstantiationDependencyInjector : NestingDependencyInjectorBase
    {
        public NestingInstantiationDependencyInjector(IObjectConfigurationRegistry objectConfigurationRegistry, ObjectConfiguration currentConfiguration, Type expectedType) : base(objectConfigurationRegistry, currentConfiguration, expectedType)
        {
        }

        public override void Inject(object value)
        {
            ObjectConfiguration.Builder.AddConstructorArg(value);
        }
    }
}
